package com.dhb.pattern.singleton;

import com.dhb.pattern.singleton.lazy.LazyDoubleCheckSingleton;
import com.dhb.pattern.singleton.lazy.LazySimpleSingleton;

/**
 * 功能描述：
 * 创建人：citymoon
 * 创建日期：2019/5/4
 */
public class LazySingletonExecuteThread implements Runnable {
    @Override
    public void run() {
//        LazySimpleSingleton lazySimpleSingleton = LazySimpleSingleton.getInstance();
        LazyDoubleCheckSingleton lazySimpleSingleton = LazyDoubleCheckSingleton.getInstance();
        System.out.println(Thread.currentThread().getName() + ":" +lazySimpleSingleton);
    }
}
